package com.ruoyi.jiaopei.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.ruoyi.jiaopei.domain.TbStudent;
import com.ruoyi.jiaopei.domain.vo.StudentCurriculumVo;
import com.ruoyi.jiaopei.domain.vo.TbStudentVo;
import com.ruoyi.jiaopei.domain.bo.TbStudentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * 学员Service接口
 *
 * @author macy
 * @date 2024-04-03
 */
public interface ITbStudentService {

    /**
     * 查询学员
     */
    TbStudentVo queryById(Long id);

    /**
     * 查询学员列表
     */
    TableDataInfo<TbStudentVo> queryPageList(TbStudentBo bo, PageQuery pageQuery);

    TableDataInfo<StudentCurriculumVo> queryStudentCurriculum(TbStudentBo bo, PageQuery pageQuery);
    TableDataInfo<StudentCurriculumVo> queryStudentCurriculumNew(TbStudentBo bo, PageQuery pageQuery);

    StudentCurriculumVo queryStudentCurriculumInfo(@Param(Constants.WRAPPER) TbStudentBo bo);
    StudentCurriculumVo queryStudentCurriculumInfo(@Param(Constants.WRAPPER) Wrapper<TbStudent> queryWrapper);

    /**
     * 查询学员列表
     */
    List<TbStudentVo> queryList(TbStudentBo bo);

    /**
     * 新增学员
     */
    Boolean insertByBo(TbStudentBo bo);

    /**
     * 修改学员
     */
    Boolean updateByBo(TbStudentBo bo);

    int update(Wrapper<TbStudent> updateWrapper);

    /**
     * 校验并批量删除学员信息
     */
    Boolean deleteWithValidByIds(List<Long> ids, Boolean isValid);
}
